package com.mvp.dagger.components;

import android.app.Application;
import android.content.Context;


import com.mvp.dagger.modules.ApplicationModule;
import com.mvp.dagger.modules.NetworkModule;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;

/**
 * Created by zhangyuncai on 2018/9/11.
 */

@Singleton
@Component(modules = {ApplicationModule.class, NetworkModule.class})
public interface ApplicationComponent {

    Application application();

    Context context();

    void inject(Application application);

    Retrofit retrfit();

    OkHttpClient okHttpClient();

}
